import { createApp } from "vue";
import { createPinia } from "pinia";
import "./style.css";
import App from "./App.vue";
import "virtual:windi.css";
import "vfonts/Lato.css";
// 等宽字体
import "vfonts/FiraCode.css";
import { router } from "@/router/index";
import "vue-waterfall-plugin-next/dist/style.css";
import directive from "./directive";
// import "../mock/test";
// import "./mock/demo";
// const searchEngineTool = require("search-engine-tool");
// import searchEngineTool from "search-engine-tool";
/* const query = "深圳市天气";
const engine = "google";

searchEngineTool(query, engine)
  .then((res: any) => {
    console.log("搜索结果:");
    res.forEach((result: any) => {
      console.log("标题:", result.title);
      console.log("链接:", result.href);
      console.log("摘要:", result.abstract);
      console.log("----------------------");
    });
  })
  .catch((error: any) => {
    console.error("发生错误:", error);
  }); */
const app = createApp(App);
directive(app);
app.use(router).use(createPinia()).mount("#app");
